import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/product/getList',
    method: 'get',
    params,
  })
}

export function getProductDetail(params) {
  return request({
    url: '/product/getDetail',
    method: 'get',
    params,
  })
}

export function getProductCategory(params) {
  return request({
    url: '/product/getProductCategory',
    method: 'get',
    params,
  })
}

/**
 * 在网时长
 */
export function onlineTimeSend(data) {
  return request({
    url: '/onlineTime/send',
    method: 'post',
    data
  })
}

export function onlineTimeGetList(params) {
  return request({
    url: '/onlineTime/getList',
    method: 'get',
    params
  })
}

/**
 * 实名认证
 */
export function realNameAuthenticationSend(data) {
  return request({
    url: '/realNameAuthentication/send',
    method: 'post',
    data
  })
}

export function realNameAuthenticationGetList(params) {
  return request({
    url: '/realNameAuthentication/getList',
    method: 'get',
    params
  })
}

/**
 * 实名核验
 */
export function realNameVerificationSend(data) {
  return request({
    url: '/realNameVerification/send',
    method: 'post',
    data
  })
}

export function realNameVerificationGetList(params) {
  return request({
    url: '/realNameVerification/getList',
    method: 'get',
    params
  })
}

/**
 * 银行
 */
export function bankVerificationSend(data) {
  return request({
    url: '/bankVerification/send',
    method: 'post',
    data
  })
}

export function bankVerificationGetList(params) {
  return request({
    url: '/bankVerification/getList',
    method: 'get',
    params
  })
}

// 在网状态
export function onlineStateSend(data){
  return request({
    url: '/onlineState/send',
    method: 'post',
    data
  })
}

export function onlineStateGetList(params) {
  return request({
    url: '/onlineState/getList',
    method: 'get',
    params
  })
}

// 二次号
export function phoneCheckSend(data){
  return request({
    url: '/phoneCheck/send',
    method: 'post',
    data
  })
}

export function phoneCheckList(params) {
  return request({
    url: '/phoneCheck/getList',
    method: 'get',
    params
  })
}

export function phoneCheckDetail(params) {
  return request({
    url: '/phoneCheck/getDetail',
    method: 'get',
    params
  })
}

// 人像对比
export function portraitComparisonList(params) {
  return request({
    url: '/portraitComparison/getList',
    method: 'get',
    params
  })
}

// 人像对比
export function portraitComparisonDetail(params) {
  return request({
    url: '/portraitComparison/getDetail',
    method: 'get',
    params
  })
}

// 携号转网
export function mobileNumberPortabilityList(params) {
  return request({
    url: '/mobileNumberPortability/getList',
    method: 'get',
    params
  })
}